package cc.yugu.yhdw.webserver.service.basic;

import cc.yugu.yhdw.webserver.persistence.basic.RoleOperMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 角色操作业务
 * 
 * @Date:Created in 2018/7/4 11:24
 * @Author:
 * @Modified By: zjn 2018/7/4 11:24
 */ 
@Service
public class RoleOperService {

    @Autowired
    RoleOperMapper roleOperMapper;
    /**
    * 根据角色id查询表bas_role_oper 中角色下级（ oper_id）
    *
    * @Param: [roleId]
    * @Return: java.util.List<java.lang.Integer>
    * @Author By: zjn 2018/7/4  11:25
    */
    public List<Integer> findAll(int roleId) {
        return roleOperMapper.findAll(roleId);
    }
    /**
    * 根据角色id删除数据
    *
    * @Param: [roleId]
    * @Return: int
    * @Author By: zjn 2018/7/4  11:25
    */
    public int delete(int roleId) {
        return roleOperMapper.delete(roleId);
    }
}
